package com.ctgu.demo.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ctgu.demo.entity.User;
import com.ctgu.demo.error.exception.BusinessException;

import java.util.List;

/**
 * @program: MybitsPlusConfig
 * @description:
 * @author: gh
 * @create: 2020-06-22 12:27
 **/
public interface UserService extends IService<User> {
    IPage<User> getAll(int page, int size);
    IPage<User> selectUser(String name, int page, int size);
    void register(User user) throws BusinessException;
    User validateLogin(String telephone, String encryptPassword) throws BusinessException;
}
